package com.yc.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yc.model.Product;
import org.apache.ibatis.annotations.*;

@Mapper
public interface ProductMapper extends BaseMapper<Product> {
    // 显式定义查询 SQL，直接映射到方法
    @Select("SELECT * FROM product WHERE productId = #{productId}")
    Product selectById(Long productId);
}




